package com.atguigu.guli.edu.dao;

import com.atguigu.guli.edu.entity.Course;
import com.atguigu.guli.edu.entity.CourseCollect;
import com.atguigu.guli.edu.entity.vo.CourseDetailsVo;
import com.atguigu.guli.edu.entity.vo.CourseInfoVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * 课程
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2021-01-19 10:59:18
 */
@Mapper
public interface EduCourseDao extends BaseMapper<Course> {

    List<CourseInfoVo> selectListInfo(Page<CourseInfoVo> page,@Param("ew") QueryWrapper<Course> queryWrapper);

    CourseInfoVo getByIdCourseInfo(@Param("id") String id);

    CourseDetailsVo selectCourseDatilsVoByCourseId(@Param("id") String courseid);
}
